Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement verify_groth16 & prove_groth16 on MockProver #745

Merged
merged 18 commits into from
May 17, 2024

Conversation

ratankaliani
Copy link
Member

@ratankaliani ratankaliani commented May 15, 2024

Overview
Add implementations for verify_groth16 and prove_groth16 to the MockProver. These implementations simply check that the public_values and vkey_hash are correct.

This ensures that the following user flow is correct:

  1. User generates a proof in mock mode and saves it locally.
  2. User loads in the proof and calls verify_groth16 on it in mock mode. If they are using the correct vkey (i.e. their program hasn't changed), then the proof will verify.

@ratankaliani ratankaliani marked this pull request as ready for review May 15, 2024 19:09
prover/src/verify.rs Show resolved Hide resolved
prover/src/verify.rs Show resolved Hide resolved
@ratankaliani ratankaliani added this pull request to the merge queue May 17, 2024
Merged via the queue into dev with commit cfb648d May 17, 2024
5 checks passed
@ratankaliani ratankaliani deleted the ratan/add-mock-verification branch May 17, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants